package lab01;

public class Test11 {
    public static void main(String[] args) {
        System.out.print(2 + "\t" + 3 + "\t" + 5 + "\t" + 7 + "\t");
        int j = 4;
        for (int number = 4; number <= 100; number++) {
            if (number % 2 != 0 && number % 3 != 0 && number % 5 != 0
                    && number % 7 != 0) {
                j++;
                System.out.print(number + "\t");
                if (j % 5 == 0)
                    System.out.println();
            }
        }
    }
}
